package com.gzx.bi.modular.user.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.gzx.bi.modular.screen.entity.GzxHtCallReceiptBusiness;
import com.gzx.bi.modular.user.mapper.GzxUserDebtMapper;
import com.gzx.bi.modular.user.service.GzxUserDebtService;
import com.gzx.bi.modular.user.vo.GzxUserDebtVo;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 用户所属团队小组
 */
@Slf4j
@Service
@RequiredArgsConstructor
public class GzxUserDebtServiceImpl implements GzxUserDebtService {

    private final GzxUserDebtMapper gzxUserDebtMapper;

    /**
     * 获取用户所属团队小组
     */
    @DS("bi")
    @Override
    public List<GzxUserDebtVo> getUserDebt(List<GzxHtCallReceiptBusiness> list) {
        return gzxUserDebtMapper.getUserDebt(list);
    }
}
